package com.javaee.mapper.admin;

import com.javaee.entity.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mo
 * @since 2024-11-27
 */
@Mapper
public interface RecordMapper{

    boolean deleteRecord(Integer id);

    void addRecord(Record record);

    Record getRecordById(Integer id);

    boolean updateRecord(Record record);

    List<Record> searchRecord(String keyword, @Param("startIndex") int pageNum, @Param("perPageSize")int pageSize);

    List<Record> getRecordList();

    int selectCount();
}
